import 'package:aio/aio.dart';

///短信验证码
class SmsResult extends BaseBean {
  /// <summary>
  /// 消息批次号，由云MAS平台生成，用于关联短信发送请求与状态报告，注：若数据验证不通过，该参数值
  /// </summary>
  String? msgGroup = null;

  /// <summary>
  /// 响应状态，详见下表。success 数据验证通过。
  /// </summary>
  String? rspcod = null;

  /// <summary>
  /// 数据校验结果。true 成功
  /// </summary>
  bool? success = null;

  @override
  fromJson(Map<String, dynamic> json) {
    msgGroup = json["msgGroup"]?.toString() ?? "";
    rspcod = json["rspcod"]?.toString() ?? "";
    success = json["success"];
  }

  @override
  instance() {
    return SmsResult();
  }

  @override
  Map<String, dynamic> toJson() {
    var map = <String, dynamic>{};
    map["msgGroup"] = msgGroup;
    map["rspcod"] = rspcod;
    map["success"] = success;
    return map;
  }
}
